import React from "react";
import logo from "./logo.svg";
import "./App.css";

function App() {
  let abc = 789456;

  function clickBtn(a, e, c) {
    console.log(a, e, c);
    let _this = this
    setInterval(() => {
      _this.abc++;
    }, 2000);
  }

  return (
    <div className="App">
      <header className="App-header">
        <img src={logo} className="App-logo" alt="logo" />
        <p>
          Edit <code>src/App.js</code> and save to reload.{abc}
        </p>
        <button onClick={(event) => clickBtn("nihao", event, 857)}>
          click
        </button>
        <a
          className="App-link"
          href="https://reactjs.org"
          target="_blank"
          rel="noopener noreferrer"
        >
          Learn React
        </a>
      </header>
    </div>
  );
}

export default App;
